package top.hmtools.ckfinder.beans;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import top.hmtools.ckfinder.beans.commons.BaseResultBean;
import top.hmtools.ckfinder.beans.commons.CurrentFolderBean;
import top.hmtools.ckfinder.beans.commons.FolderBean;

@XmlRootElement(name="Connector")
public class GetFoldersResultBean extends BaseResultBean {

	@XmlElement(name="CurrentFolder")
	private CurrentFolderBean currentFolderBean;

	@XmlElementWrapper(name="Folders")
	@XmlElements(value={@XmlElement(name="Folder")})
	private List<FolderBean> folderBeans;

	@XmlTransient
	public CurrentFolderBean getCurrentFolderBean() {
		return currentFolderBean;
	}

	public void setCurrentFolderBean(CurrentFolderBean currentFolderBean) {
		this.currentFolderBean = currentFolderBean;
	}

	@XmlTransient
	public List<FolderBean> getFolderBeans() {
		return folderBeans;
	}

	public void setFolderBeans(List<FolderBean> folderBeans) {
		this.folderBeans = folderBeans;
	}
	
	
}
